package com.four.dailymanage.office.controller;

import com.four.dailymanage.common.bean.ResponseData;
import com.four.dailymanage.common.controller.BaseController;
import com.four.dailymanage.office.service.OfficeTypeDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("/officeTypeDetail")
public class OfficeTypeDetailController extends BaseController {
    @Autowired
    OfficeTypeDetailService typeDetailService;
    @GetMapping("/gets")
    public ResponseData<Object> getTypeDetail(
           @RequestParam("realtionId") int  realtionId
    ){
        System.out.println(realtionId);
        return returnObject(typeDetailService.getTypeDetail(realtionId));
    }

}
